const key = 'headlineTwo'

// 存储token
function setToken(token) {
    localStorage.setItem(key,JSON.stringify(token));
}

// 获取token
function getToken() {
    return JSON.parse(localStorage.getItem(key));
}

// 删除token
function delToken() {
    localStorage.removeItem(key);
}

// 导出
export { setToken, getToken, delToken}